// console.log('ok');
import Vue from 'vue';
import { Header, Swipe, SwipeItem } from 'mint-ui';
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

import VueRouter from 'vue-router';
Vue.use(VueRouter);

import VueResource from 'vue-resource';
Vue.use(VueResource);

import moment from 'moment';
Vue.filter('dateFormat', function(dataStr, pattern="YYYY-MM-DD hh-mm-ss") {
	return moment(dataStr).format(pattern);
})

import './lib/mui/css/mui.min.css';
import './lib/mui/css/icons-extra.css';

import router from './router.js';

import app from './App.vue';
var vm = new Vue({

	el: "#app",
	render: c => c(app),
	router
});